﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using RemoteScriptingLibrary;
using RemoteScriptingLibrary.Microsoft.Win32;

namespace WindowsRemoteScripting.Action
{
    public class InsertMousePosition : AbstractCommand
    {
        public override void Run(object sender, EventArgs e)
        {
            Win32.POINT point = new Win32.POINT();
            point = Helper.GetMouseCoordinates();
            Form1.m_Form.textBoxScript.Text += CreateMousePositionString(point);
        }

        public string CreateMousePositionString(Win32.POINT point)
        {
            return point.X + ", " + point.Y;
        }
    }
}
